<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../../static/css/bootstrap.min.css" rel="stylesheet" th:href="@{/static/css/bootstrap.min.css}">
    <!-- Custom styles for this template -->
    <link href="../../static/css/dashboard.css" rel="stylesheet" th:href="@{/static/css/dashboard.css}">
</head>
<body>
<!--顶部导航栏-->
<div th:replace="~{student/common::topbar}"></div>

<div class="container-fluid">
    <div class="row">
        <!--侧边栏 组件化-->
        <div th:replace="~{student/common::sidebar(active='studentGrade.html')}"></div>
        <main class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" role="main">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
                <h1 class="h3">成绩信息</h1>
                <div class="btn-toolbar mb-2 mb-md-0">
                    <div class="btn-group mr-2">
                        <form id="form" method="post" th:action="@{/student/toMyExamInfo}">
                            <!--onblur 失去焦点产生事件-->
                            <div class="input-group">
                                <select class="form-control" id="exam_id" name="exam_id">
                                    <option th:each="examlist:${examList}"
                                            th:selected="${exam_id==examlist.getExam_id()}"
                                            th:text="${examlist.getExam_name()}"
                                            th:value="${examlist.getExam_id()}"></option>
                                </select>
                                <input hidden name="sno" th:value="${sno}" type="text">
                                <input class="input-group-addon btn btn-sm btn-primary" type="submit" value="搜索">
                            </div>
                        </form>
                    </div>
                    <div class="btn-group mr-2">
                        <button class="btn btn-sm btn-outline-secondary" id="btn-dormInfo">我的寝室</button>
                        <button class="btn btn-sm btn-outline-secondary" id="btn-selfInfo">我的信息</button>
                    </div>
                    <div class="btn-group mr-2">

                        <button class="btn btn-primary btn-sm btn-outline-secondary" id="btn-admin">管理员</button>
                        <button class="btn btn-sm btn-outline-secondary" id="btn-student">重新登陆</button>
                        <!-- <button id="btn-refresh" class="btn btn-sm btn-outline-secondary">刷新页面</button>-->
                    </div>
                </div>
            </div>
            <div class="table-responsive">
                <table class="table table-hover table-bordered table-striped table-sm">
                    <thead style="background-color: #00d0ff">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th style="color: #AB9C08">考试编号</th>
                        <th style="color: #067D14">考试名称</th>
                        <th style="color: #00f729">考试科目编号</th>
                        <th style="color: #AB9C08">考试科目</th>
                        <th style="color: #08ab80">考试成绩</th>
                        <!-- <th>考场地点</th>
                         <th>考场座位</th>
                         <th>考试日期</th>
                         <th>考试时间</th>-->
                        <!-- <th>考试具体事项安排</th>-->
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="exam:${stuExamList}">
                        <th th:text="${exam.getSno()==null||exam.getSno==''?'未安排':exam.getSno()}"></th>
                        <th th:text="${exam.getSname()==null||exam.getSname()==''?'未安排':exam.getSname()}"></th>
                        <th th:text="${exam.getExam_id()==null||exam.getExam_id()==''?'未安排':exam.getExam_id()}"></th>
                        <th th:text="${exam.getExam_name()==null||exam.getExam_name()==''?'未安排':exam.getExam_name()}"></th>
                        <th th:text="${exam.getExam_cid()==null||exam.getExam_cid()==''?'未安排':exam.getExam_cid()}"></th>
                        <th th:text="${exam.getExam_cname()==null||exam.getExam_cname()==''?'未安排':exam.getExam_cname()}"></th>
                        <th th:text="${exam.getGrade()==null||exam.getGrade()==''?'未安排':exam.getGrade()}"></th>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>

    </div>
</div>
<script src="../../static/js/jquery-3.6.0.js" th:src="@{/static/js/jquery-3.6.0.js}"></script>
<!--<script type="text/javascript" src="../../static/js/popper.min.js" th:src="@{/static/js/popper.min.js}"></script>-->
<script src="../../static/js/bootstrap.min.js" th:src="@{/static/js/bootstrap.min.js}" type="text/javascript"></script>
<script src="../../static/js/btn.js" th:src="@{/static/js/btn.js}"></script>
</body>
</html>